Skip to main content

Synthesis Debug

❓ Question: During the synthesis stage, getting this Error​

/home/demo/catalyzer_projects/sdram_controller/inputs/design/wb_stagging.sv:78: ERROR:
syntax error, unexpected TOK_ID, expecting ',' or '=' or ')'

Code snapshot:
77 module wb_stagging (
78 input logic clk_i,
79 input logic rst_n,
80 // WishBone Input master I/P
81 input logic [31:0] m_wbd_dat_i,
82 input logic [31:0] m_wbd_adr_i,

✅ Answer​

To fix this issue, the most probable reason is that you are using "logic" type and whereas you have the file in the filelist without "-sv" option. to fix this issue update the filelist as follows

Older: /home/demo/catalyzer_projects/sdram_controller/inputs/design/wb_stagging.sv Updated one: -sv /home/demo/catalyzer_projects/sdram_controller/inputs/design/wb_stagging.sv



❓ Question: Synthesis step showing Error: Failed to flush Yosys pipe.​

[INFO]: Using inputs/src.f for reading the design
Error: Failed to flush Yosys pipe.
Error in file: scripts/flow_synth.tcl

or The error in the log file could be followings

Executing Verilog-2005 frontend: inputs/fifo.v
inputs/fifo.v:3: ERROR: Re-definition of module `\fifo'!

✅ Answer​

This kind of error occurs when the same design file is compiled more than once, often due to duplication in the source file list.

✔️ Fix:
Review and correct the list of files in src.f or wherever the file list is defined to ensure each file appears only once. Then relaunch Catalyzer.

💡 Tip: Check for both:

  • Manual repetition of the same file path
  • Same file included indirectly via multiple includes